The Accordion Pane Component > FAccordionPane.removeAll() |
FAccordionPane.removeAll()
Availability
Flash Player 6.
Usage
myAccordion_acp.removeAll ()
Parameters
none
Returns
Removes all sections from the component.
Description
Removes all sections from the component. Any data associated with the sections will be lost.
Example
The accordion_example1.fla example file contains an example of using this method.
The following code add four sections to the accordion pane component, removes those sections and then traces the length.
var sections = ["Section 1","Section 2","Section 3","Section 4"];
myAccordionPane_acp.setDataProvider(sections);
myAccordionPane_acp.removeAll();
var len = myAccordionPane_acp.getLength();
trace("Length: "+len); //traces "Length: 0">
See also